﻿<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
    <title></title>
    <style type="text/css">
        .style1
        {
            width: 134px;
        }
    </style>

    <script language="javascript" type="text/javascript">
// <!CDATA[

function encode_utf8( text )
{
    var result;
    var code;
    var str = '';
    for(i=0;i<text.length;++i)
    {
        code = text.charCodeAt(i);
        if(code<100)
        {
            if(code>9)
            {
                str = str+'0'+code+'';
            }
            else
            {
                str = str&"00"&code;
            }
        }
        else
        {
            str = code;
        }
        result = str;
    }
    return str;
}

function Button1_onclick() {
    Text4.value = encode_utf8(Text1.value);
}

// ]]>
    </script>

</head>
<body>
    <table style="width: 100%;">
        <tr>
            <td class="style1">
                Original Text
            </td>
            <td>
                <input id="Text1" type="text" />
            </td>
        </tr>
        <tr>
            <td class="style1">
                Key
            </td>
            <td>
                <input id="Text2" type="text" />
            </td>
        </tr>
        <tr>
            <td class="style1">
                IV
            </td>
            <td>
                <input id="Text3" type="text" />
            </td>
        </tr>
        <tr>
            <td class="style1">
                Bytes
            </td>
            <td>
                <input id="Text4" type="text" />
            </td>
        </tr>
        <tr>
            <td class="style1">
                Encrypted
            </td>
            <td>
                <input id="Text5" type="text" />
            </td>
        </tr>
        <tr>
            <td class="style1">
                Decripted
            </td>
            <td>
                <input id="Text6" type="text" />
            </td>
        </tr>
        <tr>
            <td class="style1">
                &nbsp;
            </td>
            <td>
                <input id="Button1" type="button" value="button" onclick="return Button1_onclick()" />
            </td>
        </tr>
    </table>
    <p>
        &nbsp;</p>
</body>
</html>
